<?php

use think\migration\Seeder;

class AuthGroup extends Seeder
{
    /**
     * Run Method.
     *
     * Write your database seeder using this method.
     *
     * More information on writing seeders is available here:
     * http://docs.phinx.org/en/latest/seeding.html
     */
    public function run()
    {
        $faker = Faker\Factory::create('zh_CN');//选择中文库
        $rows = [
            [
                "id" => 1,
                "name" => "默认权限组",
                "desc" => "默认权限组",
                "show_rules" => "1,4,6,31,12,8,9",
                "rules" => "1,4,6,31,12,8,9,5,2",
                "status" => "0",
                "update_time" => time(),
                "create_time" => time(),
            ]
        ];
        $this->table('auth_group')->insert($rows)->save();
    }
}